package com.smartsaas.ugclivii.cd;

import nxopen.NXException;
import nxopen.blockstyler.Node;
import nxopen.blockstyler.Tree;

import java.rmi.RemoteException;

public class MlTreeMenuSelectionHandler implements Tree.OnMenuSelectionCallback {
    @Override
    public void onMenuSelectionCallback(Tree tree, Node node, int i) throws NXException, RemoteException {
        if (node!=null){
            tree.deleteNode(node);
        }
    }
}
